package com.huawang.mdesign.model.service.vo.diagram.table;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 度量相关表格列表
 */
@Data
public class DiagramMeasurementTableRowVo {
    @Schema(title = "行元素id")
    private String rowId;

    @Schema(title = "行父元素id")
    private String parentRowId;

    @Schema(title = "子行元素")
    private List<DiagramMeasurementTableRowVo> children = new ArrayList<>();

    public DiagramMeasurementTableRowVo(String rowId, String parentRowId) {
        this.rowId = rowId;
        this.parentRowId = parentRowId;
    }
}
